|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.common.configurations.VariableMappingConfiguration
public class VariableMappingConfiguration
A configuration describing how to map a variable into a target process.
| Field Summary | |
|---|---|
static int |
TYPE_EXPRESSION
Initialize variable with an expression. |
static int |
TYPE_NONE
Do not initialize the variable. |
static int |
TYPE_STATIC
Initialize variable to a static value. |
static int |
TYPE_VARIABLE
Initialize variable with an expression. |
| Fields inherited from interface org.eclipse.vtp.framework.common.configurations.CommonConstants |
|---|
MAPPING_TYPE_EXPRESSION, MAPPING_TYPE_NONE, MAPPING_TYPE_STATIC, MAPPING_TYPE_VARIABLE, NAME_ASSIGNMENT, NAME_BRANCH, NAME_BRAND, NAME_DATA_TYPE, NAME_DISPATCH, NAME_ENTRY, NAME_EXIT, NAME_FIELD, NAME_INITIAL_VALUE, NAME_KEY, NAME_LEFT_OPERAND, NAME_NAME, NAME_OUTGOING, NAME_PATH, NAME_PRIMARY_FIELD, NAME_RIGHT_OPERAND, NAME_SCRIPT, NAME_SCRIPTING_LANGUGAGE, NAME_TYPE, NAME_URI, NAME_VALUE, NAME_VARIABLE_MAPPING, NAMESPACE_URI |
| Constructor Summary | |
|---|---|
VariableMappingConfiguration()
Creates a new VariableMapping. |
|
| Method Summary | |
|---|---|
java.lang.String |
getScriptingLangugage()
Returns the scripting language to use if the value is an expression. |
int |
getType()
Returns the type of mapping to perform. |
java.lang.String |
getValue()
Returns the value to use for the mapping. |
void |
load(org.w3c.dom.Element configurationElement)
Loads the configuration information from the specified XML element. |
void |
save(org.w3c.dom.Element configurationElement)
Saves the configuration information into the supplied XML element. |
void |
setExpressionValue(java.lang.String expression,
java.lang.String scriptingLangugage)
Configures this mapping to have the result of an expression set as the value. |
void |
setNoValue()
Configures this mapping to have no value set. |
void |
setStaticValue(java.lang.String value)
Configures this mapping to have a static value set. |
void |
setVariableValue(java.lang.String variableName)
Configures this mapping to have a variable set as the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_NONE
public static final int TYPE_STATIC
public static final int TYPE_EXPRESSION
public static final int TYPE_VARIABLE
| Constructor Detail |
|---|
public VariableMappingConfiguration()
| Method Detail |
|---|
public int getType()
public java.lang.String getValue()
public java.lang.String getScriptingLangugage()
public void setNoValue()
public void setStaticValue(java.lang.String value)
value - The value to set the variable to.
public void setExpressionValue(java.lang.String expression,
java.lang.String scriptingLangugage)
expression - THe expression to evaluate.scriptingLangugage - The language the expression is defined in.public void setVariableValue(java.lang.String variableName)
variableName - The name of the variable to use as the value.public void load(org.w3c.dom.Element configurationElement)
IConfiguration
load in interface IConfigurationconfigurationElement - The element to load the configuration from.public void save(org.w3c.dom.Element configurationElement)
IConfiguration
save in interface IConfigurationconfigurationElement - The element to save the configuration to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||